home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / wing.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  2.2 KB  |  83 lines

  1. /*****************************************************************************\
  2. *
  3. * wing.h - WinG functions, types, and definitions
  4. *
  5. *          Copyright (c) 1994 Microsoft Corp. All rights reserved.
  6. *
  7. \*****************************************************************************/
  8.  
  9. #ifndef _INC_WING
  10. #define _INC_WING
  11. #pragma option push -b
  12.  
  13.  
  14. #ifndef _INC_WINDOWS
  15.  
  16. #include <windows.h>    /* Include windows.h if not already included */
  17.  
  18. #endif
  19.  
  20. #ifdef __cplusplus
  21. extern "C" {            /* Assume C declarations for C++ */
  22. #endif
  23.  
  24. #if defined(WIN32) || defined(_WIN32)
  25. #define WINGAPI WINAPI
  26. #else
  27. #define WINGAPI WINAPI _loadds
  28. #endif
  29.  
  30.  
  31. /***** WingDC and WinGBitmap *************************************************/
  32.  
  33. HDC WINGAPI WinGCreateDC( void );
  34.  
  35. BOOL WINGAPI WinGRecommendDIBFormat( BITMAPINFO FAR *pFormat );
  36.  
  37. HBITMAP WINGAPI WinGCreateBitmap( HDC WinGDC, BITMAPINFO const FAR *pHeader,
  38.         void FAR *FAR *ppBits );
  39.  
  40. void FAR *WINGAPI WinGGetDIBPointer( HBITMAP WinGBitmap,
  41.         BITMAPINFO FAR *pHeader );
  42.  
  43. UINT WINGAPI WinGGetDIBColorTable( HDC WinGDC, UINT StartIndex,
  44.         UINT NumberOfEntries, RGBQUAD FAR *pColors );
  45.  
  46. UINT WINGAPI WinGSetDIBColorTable( HDC WinGDC, UINT StartIndex,
  47.         UINT NumberOfEntries, RGBQUAD const FAR *pColors );
  48.  
  49.  
  50. /***** Halftoning ************************************************************/
  51.  
  52. HPALETTE WINGAPI WinGCreateHalftonePalette( void );
  53.  
  54. typedef enum WING_DITHER_TYPE
  55. {
  56.     WING_DISPERSED_4x4,
  57.     WING_DISPERSED_8x8,
  58.  
  59.     WING_CLUSTERED_4x4
  60.  
  61. } WING_DITHER_TYPE;
  62.  
  63. HBRUSH WINGAPI WinGCreateHalftoneBrush( HDC Context, COLORREF crColor,
  64.         WING_DITHER_TYPE DitherType );
  65.  
  66.  
  67. /***** Blts ******************************************************************/
  68.  
  69. BOOL WINGAPI WinGBitBlt( HDC hdcDest, int nXOriginDest,
  70.         int nYOriginDest, int nWidthDest, int nHeightDest, HDC hdcSrc,
  71.         int nXOriginSrc, int nYOriginSrc );
  72.  
  73. BOOL WINGAPI WinGStretchBlt( HDC hdcDest, int nXOriginDest,
  74.         int nYOriginDest, int nWidthDest, int nHeightDest, HDC hdcSrc,
  75.         int nXOriginSrc, int nYOriginSrc, int nWidthSrc, int nHeightSrc );
  76.  
  77. #ifdef __cplusplus
  78. }                       /* End of extern "C" */
  79. #endif
  80.  
  81. #pragma option pop
  82. #endif // _INC_WING
  83.